package org.a026;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Tese26 {
	@SuppressWarnings("unused")
	public static void main(String[] args) {
		ArrayList<Integer> list = new ArrayList<>();
		Random r = new Random(1000l);
		for(int i=0;i<100;i++) {
			list.add(r.nextInt());
		}
		 List<Integer> list3 = list.stream().filter(n->true).collect(Collectors.toList());
		Stream<String> stream= Stream.of("aa","bb","cc");
		List<String> list2=stream.collect(Collectors.toList());
		System.out.println(list2);
		Map<String, String> map = list2.stream().collect(Collectors.toMap(k->k, v->v));
		System.out.println(map);
	}
}
